home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 21 / AACD 21.iso / AACD / Utilities / Ghostscript / src / gsptype2.h < prev    next >
Encoding:
C/C++ Source or Header  |  2001-01-01  |  2.5 KB  |  76 lines

  1. /* Copyright (C) 1997, 1999 Aladdin Enterprises.  All rights reserved.
  2.   
  3.   This file is part of AFPL Ghostscript.
  4.   
  5.   AFPL Ghostscript is distributed with NO WARRANTY OF ANY KIND.  No author or
  6.   distributor accepts any responsibility for the consequences of using it, or
  7.   for whether it serves any particular purpose or works at all, unless he or
  8.   she says so in writing.  Refer to the Aladdin Free Public License (the
  9.   "License") for full details.
  10.   
  11.   Every copy of AFPL Ghostscript must include a copy of the License, normally
  12.   in a plain ASCII text file named PUBLIC.  The License grants you the right
  13.   to copy, modify and redistribute AFPL Ghostscript, but only under certain
  14.   conditions described in the License.  Among other things, the License
  15.   requires that the copyright notice and this notice be preserved on all
  16.   copies.
  17. */
  18.  
  19. /*$Id: gsptype2.h,v 1.2 2000/09/19 19:00:32 lpd Exp $ */
  20. /* Client interface to PatternType 2 Patterns */
  21.  
  22. #ifndef gsptype2_INCLUDED
  23. #  define gsptype2_INCLUDED
  24.  
  25. #include "gspcolor.h"
  26.  
  27. /* ---------------- Types and structures ---------------- */
  28.  
  29. /* PatternType 2 template */
  30.  
  31. #ifndef gs_shading_t_DEFINED
  32. #  define gs_shading_t_DEFINED
  33. typedef struct gs_shading_s gs_shading_t;
  34. #endif
  35.  
  36. typedef struct gs_pattern2_template_s {
  37.     gs_pattern_template_common;
  38.     const gs_shading_t *Shading;
  39. } gs_pattern2_template_t;
  40.  
  41. #define private_st_pattern2_template() /* in gsptype2.c */\
  42.   gs_private_st_suffix_add1(st_pattern2_template,\
  43.     gs_pattern2_template_t, "gs_pattern2_template_t",\
  44.     pattern2_template_enum_ptrs, pattern2_template_reloc_ptrs,\
  45.     st_pattern_template, Shading)
  46. #define st_pattern2_template_max_ptrs (st_pattern_template_max_ptrs + 1)
  47.  
  48. /* PatternType 2 instance */
  49.  
  50. #ifndef gx_device_color_DEFINED
  51. #  define gx_device_color_DEFINED
  52. typedef struct gx_device_color_s gx_device_color;
  53. #endif
  54.  
  55. typedef struct gs_pattern2_instance_s {
  56.     gs_pattern_instance_common;
  57.     gs_pattern2_template_t template;
  58. } gs_pattern2_instance_t;
  59.  
  60. #define private_st_pattern2_instance() /* in gsptype2.c */\
  61.   gs_private_st_composite(st_pattern2_instance, gs_pattern2_instance_t,\
  62.     "gs_pattern2_instance_t", pattern2_instance_enum_ptrs,\
  63.     pattern2_instance_reloc_ptrs)
  64.  
  65. /* ---------------- Procedures ---------------- */
  66.  
  67. /*
  68.  * We should provide a gs_cspace_build_Pattern2 procedure to construct
  69.  * the color space, but we don't.
  70.  */
  71.  
  72. /* Initialize a PatternType 2 pattern. */
  73. void gs_pattern2_init(P1(gs_pattern2_template_t *));
  74.  
  75. #endif /* gsptype2_INCLUDED */
  76.